Dynomotion

Group: DynoMotion Message: 6918 From: Tom Kerekes Date: 3/9/2013
Subject: Re: ANother newbee question. Kflop seems to be routing axis to wrong
Hi Steve,

Sorry it is so confusing there is a lot of flexibility and options.

Actually any axis channel can be mapped to any GCode axis using the DefineCoordSystem() function.  So there is no set order.  But the most straightforward is to map as you describe:
Axis 0=X 1=Y 2=Z and 3=A

by the function call:

DefineCoordSystem(0,1,2,3);



But then furthermore any axis channel can control one or more output devices.  In your case the axis only needs to control one device, a Step/Dir Generator.  There are 8 Step/Dir Generators that are basically hard wired to specific IO pins (2 pins each - one pin for Step and one pin for Direction).  The OutputChan0 setting determines which of the Step/Dir Generators will be used.  The OutputChan1 setting is not used at all.

Again the simple and logical thing is to have:

axis channel #0 use Step/Dir Generator #0
axis channel #1 use Step/Dir Generator #1
axis channel #2 use Step/Dir Generator #2
axis channel #3 use Step/Dir Generator #3


However there is one more thing to consider.  The outputs of the Step/Dir generators can drive in open collector mode or TTL output mode.  Open collector mode only sinks current to ground.  This mode works with the most common type of drives that need to sink 5V signals to ground.  Note that in open collector mode if you use a scope or voltmeter to look at the outputs you wont see anything because the output only sinks current (shorts to ground).  Some drives work require the inputs to be actively driven high and low.  In this case select TTL mode.  To select TTL mode add 8 to the OutputChan0 number.


This is all spelled out with tables on how to configure here:

http://www.dynomotion.com/Help/StepAndDirection/StepAndDir.htm

This KFLOP functional diagram might help understand and visualize the software and hardware components.

http://www.dynomotion.com/Help/SchematicsKFLOP/KFLOPFunctionalDiagram.htm


You haven't told us what type of drives you have.  But assuming you require TTL signals and want to use the first 4 Step/Dir Generators.  Configure:

Axis channel 0 OutputChan0=8
Axis channel 1 OutputChan0=9
Axis channel 2 OutputChan0=10
Axis channel 3 OutputChan0=11

HTH
Regards
TK


Group: DynoMotion Message: 6919 From: Steve Date: 3/9/2013
Subject: Re: ANother newbee question. Kflop seems to be routing axis to wrong
First, let me think you for the prompt reply on a Saturday.

I have read the documents you linked to. . . more tha once . . . and
they do not shed any light on the poarticular problem because they
describe how the device is supposed to work, but it is not working that
way.

FWIW, I am running the Kflop output into opto-isolated line drivers.
The resulting differenial signal goes to Mitsubishi industrial drives
(MR J3 series in this case). But that is not the problem, I have a good
differential signal coming off the line drivers. I can use either mode
depending on how I arrange the resistors on the boards, but your tip was
well noted. I read that in the docs at one point, but I had forgotten
about it.

However, that is not the problem either.

I have the define coord call at the end of the Init.c exactly as you
have shown and I am also aware of the other setup requirements you cited
and my setup was pretty much exactly as you decsribe with one exception;

You instruct to use the following, which seems contrary to the
documentation, so perhaps this is where the disconenct is:

-->
> Axis channel 0 OutputChan0=8
>
> Axis channel 1 OutputChan0=9
>
> Axis channel 2 OutputChan0=10
>
> Axis channel 3 OutputChan0=11


Why would the output chan for axis 1 be 9? I am using the I/O number
for the 'step' pin of each axis, which is 8,10,12,14 respectively. You
are using sequential numbers for each channel.

What exactly is the channel number? It was my impression that this was
the I/O number, but obviously that is not the case according to your
instruction. I did notice that for example I/O 14 is on the RJ45, yet
it is assocuated with a pin that is on JP7 (if I remeber correctly).

IN a nutshell, Iam getting the signals I need, they are just on the
wrong pins and followng the docs exactly does not correct the issue. If
I just set I/O 8 as an output and click it on and off, I get a signal
on pin 15 exactly as it should be. However, if I select I/O 8 as the
output channel for an axis, the signal ends up on pin 17 and I end up
without enough pins. This machine will have 6 axis. (including the
spindle) running of the Kflop and 2 more running directly off my ATC
controller. I need all of the putputs. That's why I have the K-flop.

I'll give your Putput channel numbering a try, buy can you explain the
difference bwteen the 'ouput channel number' and the 'I/O number'?

- Steve







> In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Steve,
>
> Sorry it is so confusing there is a lot of flexibility and options.
>
> Actually any axis channel can be mapped to any GCode axis using the
DefineCoordSystem() function. So there is no set order. But
the most straightforward is to map as you describe:
>
> Axis 0=X 1=Y 2=Z and 3=A
>
> by the function call:
>
> DefineCoordSystem(0,1,2,3);
>
>
>
> But then furthermore any axis channel can control one or more output
devices. In your case the axis only needs to control one device, a
Step/Dir Generator. There are 8 Step/Dir Generators that are
basically hard wired to specific IO pins (2 pins each - one pin for Step
and one pin for Direction). The OutputChan0 setting determines
which of the Step/Dir Generators will be used. The OutputChan1
setting is not used at all.
>
>
> Again the simple and logical thing is to have:
>
> axis channel #0 use Step/Dir Generator #0
> axis channel #1 use Step/Dir Generator #1
> axis channel #2 use Step/Dir Generator #2
> axis channel #3 use Step/Dir Generator #3
>
>
> However there is one more thing to consider. The outputs of the
Step/Dir generators can drive in open collector mode or TTL output
mode. Open collector mode only sinks current to ground. This
mode works with the most common type of drives that need to sink 5V
signals to ground. Note that in open collector mode if you use a
scope or voltmeter to look at the outputs you wont see anything because
the output only sinks current (shorts to ground). Some drives work
require the inputs to be actively driven high and low. In this case
select TTL mode. To select TTL mode add 8 to the OutputChan0
number.
>
>
> This is all spelled out with tables on how to configure here:
>
> http://www.dynomotion.com/Help/StepAndDirection/StepAndDir.htm
>
> This KFLOP functional diagram might help understand and visualize the
software and hardware components.
>
>
http://www.dynomotion.com/Help/SchematicsKFLOP/KFLOPFunctionalDiagram.ht\
m
>
>
> You haven't told us what type of drives you have. But assuming
you require TTL signals and want to use the first 4 Step/Dir
Generators. Configure:
>
> Axis channel 0 OutputChan0=8
>
> Axis channel 1 OutputChan0=9
>
> Axis channel 2 OutputChan0=10
>
> Axis channel 3 OutputChan0=11
>
> HTH
> Regards
> TK
>
>
>
>
> ________________________________
> From: Steve steve@...
> To: DynoMotion@yahoogroups.com
> Sent: Saturday, March 9, 2013 3:28 PM
> Subject: [DynoMotion] ANother newbee question. Kflop seems to be
routing axis to wrong pins
>
>
> Â
> Mach3 v.062Â patched Kflop plug-in from last week (fixed 'no stop
' problem).
> Can't figure out what is wrong. Double checked everything I can think
of but still no joy. The Kflop seems to be routing the axis to the wrong
pins. Hours invested in this problem, cannot figure it out.
> First, I assumed Axis 0=X 1=Y 2=Z and 3=A
> When configuring the axis I set no input, step dir output and for the
output channel I set 8 for X (axis 0) 10Â for Y (axis 1) 12 for Z
(axis 2)Â and 14 for A (axis 3)
> These I/O are supposed to rout to pins 15,17,19,21 on JP7, but what I
get is this:
> X  (axis 0) is on pin 17
> Y (axis 1) is on pin 19
> Z and A are on the RJ45 connector.
> What am I doing wrong?
> Thanks,
> Steve
> Â
> Â
> Â
> Â
> Â
>
Group: DynoMotion Message: 6922 From: Steve Date: 3/10/2013
Subject: Re: ANother newbee question. Kflop seems to be routing axis to wrong
Posting back results:

Using sequential output numbers solved the problem of axis getting routed to the wrong pins, with the exception of Output 11 which seems to go nowhere.

I have tracked down the pins used for output # 12,13,14 and 15 so that's no longer an issue.

Last problem is that I cannot get MACH3 to recognize the B (or higher) axis. I don;t see anything in the documentation about this.

How is this accomplished?

Thanks.

- Steve






--- In DynoMotion@yahoogroups.com, "Steve" <steve@...> wrote:
>
>
> First, let me think you for the prompt reply on a Saturday.
>
> I have read the documents you linked to. . . more tha once . . . and
> they do not shed any light on the poarticular problem because they
> describe how the device is supposed to work, but it is not working that
> way.
>
> FWIW, I am running the Kflop output into opto-isolated line drivers.
> The resulting differenial signal goes to Mitsubishi industrial drives
> (MR J3 series in this case). But that is not the problem, I have a good
> differential signal coming off the line drivers. I can use either mode
> depending on how I arrange the resistors on the boards, but your tip was
> well noted. I read that in the docs at one point, but I had forgotten
> about it.
>
> However, that is not the problem either.
>
> I have the define coord call at the end of the Init.c exactly as you
> have shown and I am also aware of the other setup requirements you cited
> and my setup was pretty much exactly as you decsribe with one exception;
>
> You instruct to use the following, which seems contrary to the
> documentation, so perhaps this is where the disconenct is:
>
> -->
> > Axis channel 0 OutputChan0=8
> >
> > Axis channel 1 OutputChan0=9
> >
> > Axis channel 2 OutputChan0=10
> >
> > Axis channel 3 OutputChan0=11
>
>
> Why would the output chan for axis 1 be 9? I am using the I/O number
> for the 'step' pin of each axis, which is 8,10,12,14 respectively. You
> are using sequential numbers for each channel.
>
> What exactly is the channel number? It was my impression that this was
> the I/O number, but obviously that is not the case according to your
> instruction. I did notice that for example I/O 14 is on the RJ45, yet
> it is assocuated with a pin that is on JP7 (if I remeber correctly).
>
> IN a nutshell, Iam getting the signals I need, they are just on the
> wrong pins and followng the docs exactly does not correct the issue. If
> I just set I/O 8 as an output and click it on and off, I get a signal
> on pin 15 exactly as it should be. However, if I select I/O 8 as the
> output channel for an axis, the signal ends up on pin 17 and I end up
> without enough pins. This machine will have 6 axis. (including the
> spindle) running of the Kflop and 2 more running directly off my ATC
> controller. I need all of the putputs. That's why I have the K-flop.
>
> I'll give your Putput channel numbering a try, buy can you explain the
> difference bwteen the 'ouput channel number' and the 'I/O number'?
>
> - Steve
>
>
>
>
>
>
>
> > In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Steve,
> >
> > Sorry it is so confusing there is a lot of flexibility and options.
> >
> > Actually any axis channel can be mapped to any GCode axis using the
> DefineCoordSystem() function. So there is no set order. But
> the most straightforward is to map as you describe:
> >
> > Axis 0=X 1=Y 2=Z and 3=A
> >
> > by the function call:
> >
> > DefineCoordSystem(0,1,2,3);
> >
> >
> >
> > But then furthermore any axis channel can control one or more output
> devices. In your case the axis only needs to control one device, a
> Step/Dir Generator. There are 8 Step/Dir Generators that are
> basically hard wired to specific IO pins (2 pins each - one pin for Step
> and one pin for Direction). The OutputChan0 setting determines
> which of the Step/Dir Generators will be used. The OutputChan1
> setting is not used at all.
> >
> >
> > Again the simple and logical thing is to have:
> >
> > axis channel #0 use Step/Dir Generator #0
> > axis channel #1 use Step/Dir Generator #1
> > axis channel #2 use Step/Dir Generator #2
> > axis channel #3 use Step/Dir Generator #3
> >
> >
> > However there is one more thing to consider. The outputs of the
> Step/Dir generators can drive in open collector mode or TTL output
> mode. Open collector mode only sinks current to ground. This
> mode works with the most common type of drives that need to sink 5V
> signals to ground. Note that in open collector mode if you use a
> scope or voltmeter to look at the outputs you wont see anything because
> the output only sinks current (shorts to ground). Some drives work
> require the inputs to be actively driven high and low. In this case
> select TTL mode. To select TTL mode add 8 to the OutputChan0
> number.
> >
> >
> > This is all spelled out with tables on how to configure here:
> >
> > http://www.dynomotion.com/Help/StepAndDirection/StepAndDir.htm
> >
> > This KFLOP functional diagram might help understand and visualize the
> software and hardware components.
> >
> >
> http://www.dynomotion.com/Help/SchematicsKFLOP/KFLOPFunctionalDiagram.ht\
> m
> >
> >
> > You haven't told us what type of drives you have. But assuming
> you require TTL signals and want to use the first 4 Step/Dir
> Generators. Configure:
> >
> > Axis channel 0 OutputChan0=8
> >
> > Axis channel 1 OutputChan0=9
> >
> > Axis channel 2 OutputChan0=10
> >
> > Axis channel 3 OutputChan0=11
> >
> > HTH
> > Regards
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: Steve steve@
> > To: DynoMotion@yahoogroups.com
> > Sent: Saturday, March 9, 2013 3:28 PM
> > Subject: [DynoMotion] ANother newbee question. Kflop seems to be
> routing axis to wrong pins
> >
> >
> > Â
> > Mach3 v.062Â patched Kflop plug-in from last week (fixed 'no stop
> ' problem).
> > Can't figure out what is wrong. Double checked everything I can think
> of but still no joy. The Kflop seems to be routing the axis to the wrong
> pins. Hours invested in this problem, cannot figure it out.
> > First, I assumed Axis 0=X 1=Y 2=Z and 3=A
> > When configuring the axis I set no input, step dir output and for the
> output channel I set 8 for X (axis 0) 10Â for Y (axis 1) 12 for Z
> (axis 2)Â and 14 for A (axis 3)
> > These I/O are supposed to rout to pins 15,17,19,21 on JP7, but what I
> get is this:
> > X  (axis 0) is on pin 17
> > Y (axis 1) is on pin 19
> > Z and A are on the RJ45 connector.
> > What am I doing wrong?
> > Thanks,
> > Steve
> > Â
> > Â
> > Â
> > Â
> > Â
> >
>
Group: DynoMotion Message: 6924 From: Neil Date: 3/10/2013
Subject: Re: ANother newbee question. Kflop seems to be routing axis to wrong
Settings page (alt-6) axis inhibits need their light extinguishing.

--- In DynoMotion@yahoogroups.com, "Steve" <steve@...> wrote:
>
> Posting back results:
>
> Using sequential output numbers solved the problem of axis getting routed to the wrong pins, with the exception of Output 11 which seems to go nowhere.
>
> I have tracked down the pins used for output # 12,13,14 and 15 so that's no longer an issue.
>
> Last problem is that I cannot get MACH3 to recognize the B (or higher) axis. I don;t see anything in the documentation about this.
>
> How is this accomplished?
>
> Thanks.
>
> - Steve
>
>
>
>
>
>
> --- In DynoMotion@yahoogroups.com, "Steve" <steve@> wrote:
> >
> >
> > First, let me think you for the prompt reply on a Saturday.
> >
> > I have read the documents you linked to. . . more tha once . . . and
> > they do not shed any light on the poarticular problem because they
> > describe how the device is supposed to work, but it is not working that
> > way.
> >
> > FWIW, I am running the Kflop output into opto-isolated line drivers.
> > The resulting differenial signal goes to Mitsubishi industrial drives
> > (MR J3 series in this case). But that is not the problem, I have a good
> > differential signal coming off the line drivers. I can use either mode
> > depending on how I arrange the resistors on the boards, but your tip was
> > well noted. I read that in the docs at one point, but I had forgotten
> > about it.
> >
> > However, that is not the problem either.
> >
> > I have the define coord call at the end of the Init.c exactly as you
> > have shown and I am also aware of the other setup requirements you cited
> > and my setup was pretty much exactly as you decsribe with one exception;
> >
> > You instruct to use the following, which seems contrary to the
> > documentation, so perhaps this is where the disconenct is:
> >
> > -->
> > > Axis channel 0 OutputChan0=8
> > >
> > > Axis channel 1 OutputChan0=9
> > >
> > > Axis channel 2 OutputChan0=10
> > >
> > > Axis channel 3 OutputChan0=11
> >
> >
> > Why would the output chan for axis 1 be 9? I am using the I/O number
> > for the 'step' pin of each axis, which is 8,10,12,14 respectively. You
> > are using sequential numbers for each channel.
> >
> > What exactly is the channel number? It was my impression that this was
> > the I/O number, but obviously that is not the case according to your
> > instruction. I did notice that for example I/O 14 is on the RJ45, yet
> > it is assocuated with a pin that is on JP7 (if I remeber correctly).
> >
> > IN a nutshell, Iam getting the signals I need, they are just on the
> > wrong pins and followng the docs exactly does not correct the issue. If
> > I just set I/O 8 as an output and click it on and off, I get a signal
> > on pin 15 exactly as it should be. However, if I select I/O 8 as the
> > output channel for an axis, the signal ends up on pin 17 and I end up
> > without enough pins. This machine will have 6 axis. (including the
> > spindle) running of the Kflop and 2 more running directly off my ATC
> > controller. I need all of the putputs. That's why I have the K-flop.
> >
> > I'll give your Putput channel numbering a try, buy can you explain the
> > difference bwteen the 'ouput channel number' and the 'I/O number'?
> >
> > - Steve
> >
> >
> >
> >
> >
> >
> >
> > > In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Steve,
> > >
> > > Sorry it is so confusing there is a lot of flexibility and options.
> > >
> > > Actually any axis channel can be mapped to any GCode axis using the
> > DefineCoordSystem() function. So there is no set order. But
> > the most straightforward is to map as you describe:
> > >
> > > Axis 0=X 1=Y 2=Z and 3=A
> > >
> > > by the function call:
> > >
> > > DefineCoordSystem(0,1,2,3);
> > >
> > >
> > >
> > > But then furthermore any axis channel can control one or more output
> > devices. In your case the axis only needs to control one device, a
> > Step/Dir Generator. There are 8 Step/Dir Generators that are
> > basically hard wired to specific IO pins (2 pins each - one pin for Step
> > and one pin for Direction). The OutputChan0 setting determines
> > which of the Step/Dir Generators will be used. The OutputChan1
> > setting is not used at all.
> > >
> > >
> > > Again the simple and logical thing is to have:
> > >
> > > axis channel #0 use Step/Dir Generator #0
> > > axis channel #1 use Step/Dir Generator #1
> > > axis channel #2 use Step/Dir Generator #2
> > > axis channel #3 use Step/Dir Generator #3
> > >
> > >
> > > However there is one more thing to consider. The outputs of the
> > Step/Dir generators can drive in open collector mode or TTL output
> > mode. Open collector mode only sinks current to ground. This
> > mode works with the most common type of drives that need to sink 5V
> > signals to ground. Note that in open collector mode if you use a
> > scope or voltmeter to look at the outputs you wont see anything because
> > the output only sinks current (shorts to ground). Some drives work
> > require the inputs to be actively driven high and low. In this case
> > select TTL mode. To select TTL mode add 8 to the OutputChan0
> > number.
> > >
> > >
> > > This is all spelled out with tables on how to configure here:
> > >
> > > http://www.dynomotion.com/Help/StepAndDirection/StepAndDir.htm
> > >
> > > This KFLOP functional diagram might help understand and visualize the
> > software and hardware components.
> > >
> > >
> > http://www.dynomotion.com/Help/SchematicsKFLOP/KFLOPFunctionalDiagram.ht\
> > m
> > >
> > >
> > > You haven't told us what type of drives you have. But assuming
> > you require TTL signals and want to use the first 4 Step/Dir
> > Generators. Configure:
> > >
> > > Axis channel 0 OutputChan0=8
> > >
> > > Axis channel 1 OutputChan0=9
> > >
> > > Axis channel 2 OutputChan0=10
> > >
> > > Axis channel 3 OutputChan0=11
> > >
> > > HTH
> > > Regards
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: Steve steve@
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Saturday, March 9, 2013 3:28 PM
> > > Subject: [DynoMotion] ANother newbee question. Kflop seems to be
> > routing axis to wrong pins
> > >
> > >
> > > Â
> > > Mach3 v.062Â patched Kflop plug-in from last week (fixed 'no stop
> > ' problem).
> > > Can't figure out what is wrong. Double checked everything I can think
> > of but still no joy. The Kflop seems to be routing the axis to the wrong
> > pins. Hours invested in this problem, cannot figure it out.
> > > First, I assumed Axis 0=X 1=Y 2=Z and 3=A
> > > When configuring the axis I set no input, step dir output and for the
> > output channel I set 8 for X (axis 0) 10Â for Y (axis 1) 12 for Z
> > (axis 2)Â and 14 for A (axis 3)
> > > These I/O are supposed to rout to pins 15,17,19,21 on JP7, but what I
> > get is this:
> > > X  (axis 0) is on pin 17
> > > Y (axis 1) is on pin 19
> > > Z and A are on the RJ45 connector.
> > > What am I doing wrong?
> > > Thanks,
> > > Steve
> > > Â
> > > Â
> > > Â
> > > Â
> > > Â
> > >
> >
>
Group: DynoMotion Message: 6928 From: Steve Date: 3/10/2013
Subject: Re: ANother newbee question. Kflop seems to be routing axis to wrong
Thanks for that tip. The prohblem is not with MACH3. With the Dynamotion plug in not selected (Parralel port or no device), eveything works as it should. It is definately a Kflop issue.

- Steve



--- In DynoMotion@yahoogroups.com, "Neil" <neilw20@...> wrote:
>
> Settings page (alt-6) axis inhibits need their light extinguishing.
>
> --- In DynoMotion@yahoogroups.com, "Steve" <steve@> wrote:
> >
> > Posting back results:
> >
> > Using sequential output numbers solved the problem of axis getting routed to the wrong pins, with the exception of Output 11 which seems to go nowhere.
> >
> > I have tracked down the pins used for output # 12,13,14 and 15 so that's no longer an issue.
> >
> > Last problem is that I cannot get MACH3 to recognize the B (or higher) axis. I don;t see anything in the documentation about this.
> >
> > How is this accomplished?
> >
> > Thanks.
> >
> > - Steve
> >
> >
> >
> >
> >
> >
> > --- In DynoMotion@yahoogroups.com, "Steve" <steve@> wrote:
> > >
> > >
> > > First, let me think you for the prompt reply on a Saturday.
> > >
> > > I have read the documents you linked to. . . more tha once . . . and
> > > they do not shed any light on the poarticular problem because they
> > > describe how the device is supposed to work, but it is not working that
> > > way.
> > >
> > > FWIW, I am running the Kflop output into opto-isolated line drivers.
> > > The resulting differenial signal goes to Mitsubishi industrial drives
> > > (MR J3 series in this case). But that is not the problem, I have a good
> > > differential signal coming off the line drivers. I can use either mode
> > > depending on how I arrange the resistors on the boards, but your tip was
> > > well noted. I read that in the docs at one point, but I had forgotten
> > > about it.
> > >
> > > However, that is not the problem either.
> > >
> > > I have the define coord call at the end of the Init.c exactly as you
> > > have shown and I am also aware of the other setup requirements you cited
> > > and my setup was pretty much exactly as you decsribe with one exception;
> > >
> > > You instruct to use the following, which seems contrary to the
> > > documentation, so perhaps this is where the disconenct is:
> > >
> > > -->
> > > > Axis channel 0 OutputChan0=8
> > > >
> > > > Axis channel 1 OutputChan0=9
> > > >
> > > > Axis channel 2 OutputChan0=10
> > > >
> > > > Axis channel 3 OutputChan0=11
> > >
> > >
> > > Why would the output chan for axis 1 be 9? I am using the I/O number
> > > for the 'step' pin of each axis, which is 8,10,12,14 respectively. You
> > > are using sequential numbers for each channel.
> > >
> > > What exactly is the channel number? It was my impression that this was
> > > the I/O number, but obviously that is not the case according to your
> > > instruction. I did notice that for example I/O 14 is on the RJ45, yet
> > > it is assocuated with a pin that is on JP7 (if I remeber correctly).
> > >
> > > IN a nutshell, Iam getting the signals I need, they are just on the
> > > wrong pins and followng the docs exactly does not correct the issue. If
> > > I just set I/O 8 as an output and click it on and off, I get a signal
> > > on pin 15 exactly as it should be. However, if I select I/O 8 as the
> > > output channel for an axis, the signal ends up on pin 17 and I end up
> > > without enough pins. This machine will have 6 axis. (including the
> > > spindle) running of the Kflop and 2 more running directly off my ATC
> > > controller. I need all of the putputs. That's why I have the K-flop.
> > >
> > > I'll give your Putput channel numbering a try, buy can you explain the
> > > difference bwteen the 'ouput channel number' and the 'I/O number'?
> > >
> > > - Steve
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > > In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Steve,
> > > >
> > > > Sorry it is so confusing there is a lot of flexibility and options.
> > > >
> > > > Actually any axis channel can be mapped to any GCode axis using the
> > > DefineCoordSystem() function. So there is no set order. But
> > > the most straightforward is to map as you describe:
> > > >
> > > > Axis 0=X 1=Y 2=Z and 3=A
> > > >
> > > > by the function call:
> > > >
> > > > DefineCoordSystem(0,1,2,3);
> > > >
> > > >
> > > >
> > > > But then furthermore any axis channel can control one or more output
> > > devices. In your case the axis only needs to control one device, a
> > > Step/Dir Generator. There are 8 Step/Dir Generators that are
> > > basically hard wired to specific IO pins (2 pins each - one pin for Step
> > > and one pin for Direction). The OutputChan0 setting determines
> > > which of the Step/Dir Generators will be used. The OutputChan1
> > > setting is not used at all.
> > > >
> > > >
> > > > Again the simple and logical thing is to have:
> > > >
> > > > axis channel #0 use Step/Dir Generator #0
> > > > axis channel #1 use Step/Dir Generator #1
> > > > axis channel #2 use Step/Dir Generator #2
> > > > axis channel #3 use Step/Dir Generator #3
> > > >
> > > >
> > > > However there is one more thing to consider. The outputs of the
> > > Step/Dir generators can drive in open collector mode or TTL output
> > > mode. Open collector mode only sinks current to ground. This
> > > mode works with the most common type of drives that need to sink 5V
> > > signals to ground. Note that in open collector mode if you use a
> > > scope or voltmeter to look at the outputs you wont see anything because
> > > the output only sinks current (shorts to ground). Some drives work
> > > require the inputs to be actively driven high and low. In this case
> > > select TTL mode. To select TTL mode add 8 to the OutputChan0
> > > number.
> > > >
> > > >
> > > > This is all spelled out with tables on how to configure here:
> > > >
> > > > http://www.dynomotion.com/Help/StepAndDirection/StepAndDir.htm
> > > >
> > > > This KFLOP functional diagram might help understand and visualize the
> > > software and hardware components.
> > > >
> > > >
> > > http://www.dynomotion.com/Help/SchematicsKFLOP/KFLOPFunctionalDiagram.ht\
> > > m
> > > >
> > > >
> > > > You haven't told us what type of drives you have. But assuming
> > > you require TTL signals and want to use the first 4 Step/Dir
> > > Generators. Configure:
> > > >
> > > > Axis channel 0 OutputChan0=8
> > > >
> > > > Axis channel 1 OutputChan0=9
> > > >
> > > > Axis channel 2 OutputChan0=10
> > > >
> > > > Axis channel 3 OutputChan0=11
> > > >
> > > > HTH
> > > > Regards
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: Steve steve@
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Saturday, March 9, 2013 3:28 PM
> > > > Subject: [DynoMotion] ANother newbee question. Kflop seems to be
> > > routing axis to wrong pins
> > > >
> > > >
> > > > Â
> > > > Mach3 v.062Â patched Kflop plug-in from last week (fixed 'no stop
> > > ' problem).
> > > > Can't figure out what is wrong. Double checked everything I can think
> > > of but still no joy. The Kflop seems to be routing the axis to the wrong
> > > pins. Hours invested in this problem, cannot figure it out.
> > > > First, I assumed Axis 0=X 1=Y 2=Z and 3=A
> > > > When configuring the axis I set no input, step dir output and for the
> > > output channel I set 8 for X (axis 0) 10Â for Y (axis 1) 12 for Z
> > > (axis 2)Â and 14 for A (axis 3)
> > > > These I/O are supposed to rout to pins 15,17,19,21 on JP7, but what I
> > > get is this:
> > > > X  (axis 0) is on pin 17
> > > > Y (axis 1) is on pin 19
> > > > Z and A are on the RJ45 connector.
> > > > What am I doing wrong?
> > > > Thanks,
> > > > Steve
> > > > Â
> > > > Â
> > > > Â
> > > > Â
> > > > Â
> > > >
> > >
> >
>
Group: DynoMotion Message: 6929 From: carlcnc Date: 3/10/2013
Subject: Re: ANother newbee question. Kflop seems to be routing axis to wrong
Steve
the nomenclature can be confusing, and seem illogical.
Tom's methodology is just different from Mach's
heck, I remember using a BOB for Mach that required understandin Centronics pin labeling convention translated to DB25.
keep plugging you will get it

after I about 30 kflop instalations using kflop with snapamps,ksteps,Geckos,Protobytes, Yaskawa servo drives, etc
I have never found the kflop hardware to be at fault,

Carl


--- In DynoMotion@yahoogroups.com, "Steve" <steve@...> wrote:
>
> Thanks for that tip. The prohblem is not with MACH3. With the Dynamotion plug in not selected (Parralel port or no device), eveything works as it should. It is definately a Kflop issue.
>
> - Steve
>
>
>
> --- In DynoMotion@yahoogroups.com, "Neil" <neilw20@> wrote:
> >
> > Settings page (alt-6) axis inhibits need their light extinguishing.
> >
> > --- In DynoMotion@yahoogroups.com, "Steve" <steve@> wrote:
> > >
> > > Posting back results:
> > >
> > > Using sequential output numbers solved the problem of axis getting routed to the wrong pins, with the exception of Output 11 which seems to go nowhere.
> > >
> > > I have tracked down the pins used for output # 12,13,14 and 15 so that's no longer an issue.
> > >
> > > Last problem is that I cannot get MACH3 to recognize the B (or higher) axis. I don;t see anything in the documentation about this.
> > >
> > > How is this accomplished?
> > >
> > > Thanks.
> > >
> > > - Steve
> > >
> > >
> > >
> > >
> > >
> > >
> > > --- In DynoMotion@yahoogroups.com, "Steve" <steve@> wrote:
> > > >
> > > >
> > > > First, let me think you for the prompt reply on a Saturday.
> > > >
> > > > I have read the documents you linked to. . . more tha once . . . and
> > > > they do not shed any light on the poarticular problem because they
> > > > describe how the device is supposed to work, but it is not working that
> > > > way.
> > > >
> > > > FWIW, I am running the Kflop output into opto-isolated line drivers.
> > > > The resulting differenial signal goes to Mitsubishi industrial drives
> > > > (MR J3 series in this case). But that is not the problem, I have a good
> > > > differential signal coming off the line drivers. I can use either mode
> > > > depending on how I arrange the resistors on the boards, but your tip was
> > > > well noted. I read that in the docs at one point, but I had forgotten
> > > > about it.
> > > >
> > > > However, that is not the problem either.
> > > >
> > > > I have the define coord call at the end of the Init.c exactly as you
> > > > have shown and I am also aware of the other setup requirements you cited
> > > > and my setup was pretty much exactly as you decsribe with one exception;
> > > >
> > > > You instruct to use the following, which seems contrary to the
> > > > documentation, so perhaps this is where the disconenct is:
> > > >
> > > > -->
> > > > > Axis channel 0 OutputChan0=8
> > > > >
> > > > > Axis channel 1 OutputChan0=9
> > > > >
> > > > > Axis channel 2 OutputChan0=10
> > > > >
> > > > > Axis channel 3 OutputChan0=11
> > > >
> > > >
> > > > Why would the output chan for axis 1 be 9? I am using the I/O number
> > > > for the 'step' pin of each axis, which is 8,10,12,14 respectively. You
> > > > are using sequential numbers for each channel.
> > > >
> > > > What exactly is the channel number? It was my impression that this was
> > > > the I/O number, but obviously that is not the case according to your
> > > > instruction. I did notice that for example I/O 14 is on the RJ45, yet
> > > > it is assocuated with a pin that is on JP7 (if I remeber correctly).
> > > >
> > > > IN a nutshell, Iam getting the signals I need, they are just on the
> > > > wrong pins and followng the docs exactly does not correct the issue. If
> > > > I just set I/O 8 as an output and click it on and off, I get a signal
> > > > on pin 15 exactly as it should be. However, if I select I/O 8 as the
> > > > output channel for an axis, the signal ends up on pin 17 and I end up
> > > > without enough pins. This machine will have 6 axis. (including the
> > > > spindle) running of the Kflop and 2 more running directly off my ATC
> > > > controller. I need all of the putputs. That's why I have the K-flop.
> > > >
> > > > I'll give your Putput channel numbering a try, buy can you explain the
> > > > difference bwteen the 'ouput channel number' and the 'I/O number'?
> > > >
> > > > - Steve
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > > In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Steve,
> > > > >
> > > > > Sorry it is so confusing there is a lot of flexibility and options.
> > > > >
> > > > > Actually any axis channel can be mapped to any GCode axis using the
> > > > DefineCoordSystem() function. So there is no set order. But
> > > > the most straightforward is to map as you describe:
> > > > >
> > > > > Axis 0=X 1=Y 2=Z and 3=A
> > > > >
> > > > > by the function call:
> > > > >
> > > > > DefineCoordSystem(0,1,2,3);
> > > > >
> > > > >
> > > > >
> > > > > But then furthermore any axis channel can control one or more output
> > > > devices. In your case the axis only needs to control one device, a
> > > > Step/Dir Generator. There are 8 Step/Dir Generators that are
> > > > basically hard wired to specific IO pins (2 pins each - one pin for Step
> > > > and one pin for Direction). The OutputChan0 setting determines
> > > > which of the Step/Dir Generators will be used. The OutputChan1
> > > > setting is not used at all.
> > > > >
> > > > >
> > > > > Again the simple and logical thing is to have:
> > > > >
> > > > > axis channel #0 use Step/Dir Generator #0
> > > > > axis channel #1 use Step/Dir Generator #1
> > > > > axis channel #2 use Step/Dir Generator #2
> > > > > axis channel #3 use Step/Dir Generator #3
> > > > >
> > > > >
> > > > > However there is one more thing to consider. The outputs of the
> > > > Step/Dir generators can drive in open collector mode or TTL output
> > > > mode. Open collector mode only sinks current to ground. This
> > > > mode works with the most common type of drives that need to sink 5V
> > > > signals to ground. Note that in open collector mode if you use a
> > > > scope or voltmeter to look at the outputs you wont see anything because
> > > > the output only sinks current (shorts to ground). Some drives work
> > > > require the inputs to be actively driven high and low. In this case
> > > > select TTL mode. To select TTL mode add 8 to the OutputChan0
> > > > number.
> > > > >
> > > > >
> > > > > This is all spelled out with tables on how to configure here:
> > > > >
> > > > > http://www.dynomotion.com/Help/StepAndDirection/StepAndDir.htm
> > > > >
> > > > > This KFLOP functional diagram might help understand and visualize the
> > > > software and hardware components.
> > > > >
> > > > >
> > > > http://www.dynomotion.com/Help/SchematicsKFLOP/KFLOPFunctionalDiagram.ht\
> > > > m
> > > > >
> > > > >
> > > > > You haven't told us what type of drives you have. But assuming
> > > > you require TTL signals and want to use the first 4 Step/Dir
> > > > Generators. Configure:
> > > > >
> > > > > Axis channel 0 OutputChan0=8
> > > > >
> > > > > Axis channel 1 OutputChan0=9
> > > > >
> > > > > Axis channel 2 OutputChan0=10
> > > > >
> > > > > Axis channel 3 OutputChan0=11
> > > > >
> > > > > HTH
> > > > > Regards
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: Steve steve@
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Saturday, March 9, 2013 3:28 PM
> > > > > Subject: [DynoMotion] ANother newbee question. Kflop seems to be
> > > > routing axis to wrong pins
> > > > >
> > > > >
> > > > > Â
> > > > > Mach3 v.062Â patched Kflop plug-in from last week (fixed 'no stop
> > > > ' problem).
> > > > > Can't figure out what is wrong. Double checked everything I can think
> > > > of but still no joy. The Kflop seems to be routing the axis to the wrong
> > > > pins. Hours invested in this problem, cannot figure it out.
> > > > > First, I assumed Axis 0=X 1=Y 2=Z and 3=A
> > > > > When configuring the axis I set no input, step dir output and for the
> > > > output channel I set 8 for X (axis 0) 10Â for Y (axis 1) 12 for Z
> > > > (axis 2)Â and 14 for A (axis 3)
> > > > > These I/O are supposed to rout to pins 15,17,19,21 on JP7, but what I
> > > > get is this:
> > > > > X  (axis 0) is on pin 17
> > > > > Y (axis 1) is on pin 19
> > > > > Z and A are on the RJ45 connector.
> > > > > What am I doing wrong?
> > > > > Thanks,
> > > > > Steve
> > > > > Â
> > > > > Â
> > > > > Â
> > > > > Â
> > > > > Â
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 6930 From: Steve Date: 3/10/2013
Subject: Re: ANother newbee question. Kflop seems to be routing axis to wrong
I think I have it clear in my mind the relationship and differences between the pin numbers, I/O numbers and channel numbers in Kflop speak.

I'm not trying to imply that the fault is with K-flop, probably just doing something wrong. What I need now is the trick to getting K-flop and MACH3 to cooperate with B and C axis.

I can see the B axis running in the Kflop axis screen when I do a step response test for example, and I get the signal out of the physical pins, so I know it is working in the K-flop. Mach runs the B axis fine if the K-flop plug-in is not active, so I know that Mach3 is working.

X,Y,Z, and A axis are all working in MACH with the K-flop board. Just no MACH3 'B' axis. Actually I have not tried the C axis yet, but I need all of them, so I need to have the B working.

I have searched this Yahoo forum, the MACH forum and the internet at large and I can find no examples of 5 or more axis setup with MACH. There is no example in the Dynomotion documentation. THsy only cover up to 4 axis.

If I try to set the Define call to more than 4 axis I get a compile error 'too many variables', so apparently there is something magical about the nimber 4 when it comes to K-flop axii. I just need to know to get it to talk to MACH3 above the 4th axis.

Surely with 30 installs you have setup some with more than 4 axis? What needs to be done differently with the B axis than the rest? Set up exactly the same method, but does not work.

-Steve

--- In DynoMotion@yahoogroups.com, "carlcnc" <carlcnc@...> wrote:
>
> Steve
> the nomenclature can be confusing, and seem illogical.
> Tom's methodology is just different from Mach's
> heck, I remember using a BOB for Mach that required understandin Centronics pin labeling convention translated to DB25.
> keep plugging you will get it
>
> after I about 30 kflop instalations using kflop with snapamps,ksteps,Geckos,Protobytes, Yaskawa servo drives, etc
> I have never found the kflop hardware to be at fault,
>
> Carl
>
>
> --- In DynoMotion@yahoogroups.com, "Steve" <steve@> wrote:
> >
> > Thanks for that tip. The prohblem is not with MACH3. With the Dynamotion plug in not selected (Parralel port or no device), eveything works as it should. It is definately a Kflop issue.
> >
> > - Steve
> >
> >
> >
> > --- In DynoMotion@yahoogroups.com, "Neil" <neilw20@> wrote:
> > >
> > > Settings page (alt-6) axis inhibits need their light extinguishing.
> > >
> > > --- In DynoMotion@yahoogroups.com, "Steve" <steve@> wrote:
> > > >
> > > > Posting back results:
> > > >
> > > > Using sequential output numbers solved the problem of axis getting routed to the wrong pins, with the exception of Output 11 which seems to go nowhere.
> > > >
> > > > I have tracked down the pins used for output # 12,13,14 and 15 so that's no longer an issue.
> > > >
> > > > Last problem is that I cannot get MACH3 to recognize the B (or higher) axis. I don;t see anything in the documentation about this.
> > > >
> > > > How is this accomplished?
> > > >
> > > > Thanks.
> > > >
> > > > - Steve
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --- In DynoMotion@yahoogroups.com, "Steve" <steve@> wrote:
> > > > >
> > > > >
> > > > > First, let me think you for the prompt reply on a Saturday.
> > > > >
> > > > > I have read the documents you linked to. . . more tha once . . . and
> > > > > they do not shed any light on the poarticular problem because they
> > > > > describe how the device is supposed to work, but it is not working that
> > > > > way.
> > > > >
> > > > > FWIW, I am running the Kflop output into opto-isolated line drivers.
> > > > > The resulting differenial signal goes to Mitsubishi industrial drives
> > > > > (MR J3 series in this case). But that is not the problem, I have a good
> > > > > differential signal coming off the line drivers. I can use either mode
> > > > > depending on how I arrange the resistors on the boards, but your tip was
> > > > > well noted. I read that in the docs at one point, but I had forgotten
> > > > > about it.
> > > > >
> > > > > However, that is not the problem either.
> > > > >
> > > > > I have the define coord call at the end of the Init.c exactly as you
> > > > > have shown and I am also aware of the other setup requirements you cited
> > > > > and my setup was pretty much exactly as you decsribe with one exception;
> > > > >
> > > > > You instruct to use the following, which seems contrary to the
> > > > > documentation, so perhaps this is where the disconenct is:
> > > > >
> > > > > -->
> > > > > > Axis channel 0 OutputChan0=8
> > > > > >
> > > > > > Axis channel 1 OutputChan0=9
> > > > > >
> > > > > > Axis channel 2 OutputChan0=10
> > > > > >
> > > > > > Axis channel 3 OutputChan0=11
> > > > >
> > > > >
> > > > > Why would the output chan for axis 1 be 9? I am using the I/O number
> > > > > for the 'step' pin of each axis, which is 8,10,12,14 respectively. You
> > > > > are using sequential numbers for each channel.
> > > > >
> > > > > What exactly is the channel number? It was my impression that this was
> > > > > the I/O number, but obviously that is not the case according to your
> > > > > instruction. I did notice that for example I/O 14 is on the RJ45, yet
> > > > > it is assocuated with a pin that is on JP7 (if I remeber correctly).
> > > > >
> > > > > IN a nutshell, Iam getting the signals I need, they are just on the
> > > > > wrong pins and followng the docs exactly does not correct the issue. If
> > > > > I just set I/O 8 as an output and click it on and off, I get a signal
> > > > > on pin 15 exactly as it should be. However, if I select I/O 8 as the
> > > > > output channel for an axis, the signal ends up on pin 17 and I end up
> > > > > without enough pins. This machine will have 6 axis. (including the
> > > > > spindle) running of the Kflop and 2 more running directly off my ATC
> > > > > controller. I need all of the putputs. That's why I have the K-flop.
> > > > >
> > > > > I'll give your Putput channel numbering a try, buy can you explain the
> > > > > difference bwteen the 'ouput channel number' and the 'I/O number'?
> > > > >
> > > > > - Steve
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > > In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Steve,
> > > > > >
> > > > > > Sorry it is so confusing there is a lot of flexibility and options.
> > > > > >
> > > > > > Actually any axis channel can be mapped to any GCode axis using the
> > > > > DefineCoordSystem() function. So there is no set order. But
> > > > > the most straightforward is to map as you describe:
> > > > > >
> > > > > > Axis 0=X 1=Y 2=Z and 3=A
> > > > > >
> > > > > > by the function call:
> > > > > >
> > > > > > DefineCoordSystem(0,1,2,3);
> > > > > >
> > > > > >
> > > > > >
> > > > > > But then furthermore any axis channel can control one or more output
> > > > > devices. In your case the axis only needs to control one device, a
> > > > > Step/Dir Generator. There are 8 Step/Dir Generators that are
> > > > > basically hard wired to specific IO pins (2 pins each - one pin for Step
> > > > > and one pin for Direction). The OutputChan0 setting determines
> > > > > which of the Step/Dir Generators will be used. The OutputChan1
> > > > > setting is not used at all.
> > > > > >
> > > > > >
> > > > > > Again the simple and logical thing is to have:
> > > > > >
> > > > > > axis channel #0 use Step/Dir Generator #0
> > > > > > axis channel #1 use Step/Dir Generator #1
> > > > > > axis channel #2 use Step/Dir Generator #2
> > > > > > axis channel #3 use Step/Dir Generator #3
> > > > > >
> > > > > >
> > > > > > However there is one more thing to consider. The outputs of the
> > > > > Step/Dir generators can drive in open collector mode or TTL output
> > > > > mode. Open collector mode only sinks current to ground. This
> > > > > mode works with the most common type of drives that need to sink 5V
> > > > > signals to ground. Note that in open collector mode if you use a
> > > > > scope or voltmeter to look at the outputs you wont see anything because
> > > > > the output only sinks current (shorts to ground). Some drives work
> > > > > require the inputs to be actively driven high and low. In this case
> > > > > select TTL mode. To select TTL mode add 8 to the OutputChan0
> > > > > number.
> > > > > >
> > > > > >
> > > > > > This is all spelled out with tables on how to configure here:
> > > > > >
> > > > > > http://www.dynomotion.com/Help/StepAndDirection/StepAndDir.htm
> > > > > >
> > > > > > This KFLOP functional diagram might help understand and visualize the
> > > > > software and hardware components.
> > > > > >
> > > > > >
> > > > > http://www.dynomotion.com/Help/SchematicsKFLOP/KFLOPFunctionalDiagram.ht\
> > > > > m
> > > > > >
> > > > > >
> > > > > > You haven't told us what type of drives you have. But assuming
> > > > > you require TTL signals and want to use the first 4 Step/Dir
> > > > > Generators. Configure:
> > > > > >
> > > > > > Axis channel 0 OutputChan0=8
> > > > > >
> > > > > > Axis channel 1 OutputChan0=9
> > > > > >
> > > > > > Axis channel 2 OutputChan0=10
> > > > > >
> > > > > > Axis channel 3 OutputChan0=11
> > > > > >
> > > > > > HTH
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: Steve steve@
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Saturday, March 9, 2013 3:28 PM
> > > > > > Subject: [DynoMotion] ANother newbee question. Kflop seems to be
> > > > > routing axis to wrong pins
> > > > > >
> > > > > >
> > > > > > Â
> > > > > > Mach3 v.062Â patched Kflop plug-in from last week (fixed 'no stop
> > > > > ' problem).
> > > > > > Can't figure out what is wrong. Double checked everything I can think
> > > > > of but still no joy. The Kflop seems to be routing the axis to the wrong
> > > > > pins. Hours invested in this problem, cannot figure it out.
> > > > > > First, I assumed Axis 0=X 1=Y 2=Z and 3=A
> > > > > > When configuring the axis I set no input, step dir output and for the
> > > > > output channel I set 8 for X (axis 0) 10Â for Y (axis 1) 12 for Z
> > > > > (axis 2)Â and 14 for A (axis 3)
> > > > > > These I/O are supposed to rout to pins 15,17,19,21 on JP7, but what I
> > > > > get is this:
> > > > > > X  (axis 0) is on pin 17
> > > > > > Y (axis 1) is on pin 19
> > > > > > Z and A are on the RJ45 connector.
> > > > > > What am I doing wrong?
> > > > > > Thanks,
> > > > > > Steve
> > > > > > Â
> > > > > > Â
> > > > > > Â
> > > > > > Â
> > > > > > Â
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 6931 From: Tom Kerekes Date: 3/10/2013
Subject: Re: ANother newbee question. Kflop seems to be routing axis to wrong
Hi Steve,

To define more than 4 Axes of Coordinated Motion there is a function DefineCoordSystem6.  So in your case it would probably be:

DefineCoordSystem6(0,1,2,3,4,-1);

HTH
Regards
TK

Group: DynoMotion Message: 6950 From: Steve Date: 3/11/2013
Subject: Re: ANother newbee question. Kflop seems to be routing axis to wrong

TK,

Thanks, this got me going. The Kflop is now running X,Y,Z,A,B,C +  Spindle  (Servo powered).  Have not connected any actual drives yet, but there are good signals coming off the line drivers so I do not anticipate any problems there.

Thank you very much for the prompt replies.

Question: is there a 'programmer reference' for the Kflop?  

Here is a link to my post about the completed setup.

http://www.machsupport.com/forum/index.php/topic,22080.msg168808.html#msg168808 

 

 

 


--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Steve,
>
> To define more than 4 Axes of Coordinated Motion there is a function DefineCoordSystem6.  So in your case it would probably be:
>
> DefineCoordSystem6(0,1,2,3,4,-1);
>
> HTH
> Regards
> TK
>
>
>
> ________________________________
> From: Steve steve@...
> To: DynoMotion@yahoogroups.com
> Sent: Sunday, March 10, 2013 1:43 PM
> Subject: [DynoMotion] Re: ANother newbee question. Kflop seems to be routing axis to wrong pins
>
>
>  
> I think I have it clear in my mind the relationship and differences between the pin numbers, I/O numbers and channel numbers in Kflop speak.
>
> I'm not trying to imply that the fault is with K-flop, probably just doing something wrong. What I need now is the trick to getting K-flop and MACH3 to cooperate with B and C axis.
>
> I can see the B axis running in the Kflop axis screen when I do a step response test for example, and I get the signal out of the physical pins, so I know it is working in the K-flop. Mach runs the B axis fine if the K-flop plug-in is not active, so I know that Mach3 is working.
>
> X,Y,Z, and A axis are all working in MACH with the K-flop board. Just no MACH3 'B' axis. Actually I have not tried the C axis yet, but I need all of them, so I need to have the B working.
>
> I have searched this Yahoo forum, the MACH forum and the internet at large and I can find no examples of 5 or more axis setup with MACH. There is no example in the Dynomotion documentation. THsy only cover up to 4 axis.
>
> If I try to set the Define call to more than 4 axis I get a compile error 'too many variables', so apparently there is something magical about the nimber 4 when it comes to K-flop axii. I just need to know to get it to talk to MACH3 above the 4th axis.
>
> Surely with 30 installs you have setup some with more than 4 axis? What needs to be done differently with the B axis than the rest? Set up exactly the same method, but does not work.
>
> -Steve
>
> --- In DynoMotion@yahoogroups.com, "carlcnc" carlcnc@ wrote:
> >
> > Steve
> > the nomenclature can be confusing, and seem illogical.
> > Tom's methodology is just different from Mach's
> > heck, I remember using a BOB for Mach that required understandin Centronics pin labeling convention translated to DB25.
> > keep plugging you will get it
> >
> > after I about 30 kflop instalations using kflop with snapamps,ksteps,Geckos,Protobytes, Yaskawa servo drives, etc
> > I have never found the kflop hardware to be at fault,
> >
> > Carl
> >
> >
> > --- In DynoMotion@yahoogroups.com, "Steve" <steve@> wrote:
> > >
> > > Thanks for that tip. The prohblem is not with MACH3. With the Dynamotion plug in not selected (Parralel port or no device), eveything works as it should. It is definately a Kflop issue.
> > >
> > > - Steve
> > >
> > >
> > >
> > > --- In DynoMotion@yahoogroups.com, "Neil" <neilw20@> wrote:
> > > >
> > > > Settings page (alt-6) axis inhibits need their light extinguishing.
> > > >
> > > > --- In DynoMotion@yahoogroups.com, "Steve" <steve@> wrote:
> > > > >
> > > > > Posting back results:
> > > > >
> > > > > Using sequential output numbers solved the problem of axis getting routed to the wrong pins, with the exception of Output 11 which seems to go nowhere.
> > > > >
> > > > > I have tracked down the pins used for output # 12,13,14 and 15 so that's no longer an issue.
> > > > >
> > > > > Last problem is that I cannot get MACH3 to recognize the B (or higher) axis. I don;t see anything in the documentation about this.
> > > > >
> > > > > How is this accomplished?
> > > > >
> > > > > Thanks.
> > > > >
> > > > > - Steve
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, "Steve" <steve@> wrote:
> > > > > >
> > > > > >
> > > > > > First, let me think you for the prompt reply on a Saturday.
> > > > > >
> > > > > > I have read the documents you linked to. . . more tha once . . . and
> > > > > > they do not shed any light on the poarticular problem because they
> > > > > > describe how the device is supposed to work, but it is not working that
> > > > > > way.
> > > > > >
> > > > > > FWIW, I am running the Kflop output into opto-isolated line drivers.
> > > > > > The resulting differenial signal goes to Mitsubishi industrial drives
> > > > > > (MR J3 series in this case). But that is not the problem, I have a good
> > > > > > differential signal coming off the line drivers. I can use either mode
> > > > > > depending on how I arrange the resistors on the boards, but your tip was
> > > > > > well noted. I read that in the docs at one point, but I had forgotten
> > > > > > about it.
> > > > > >
> > > > > > However, that is not the problem either.
> > > > > >
> > > > > > I have the define coord call at the end of the Init.c exactly as you
> > > > > > have shown and I am also aware of the other setup requirements you cited
> > > > > > and my setup was pretty much exactly as you decsribe with one exception;
> > > > > >
> > > > > > You instruct to use the following, which seems contrary to the
> > > > > > documentation, so perhaps this is where the disconenct is:
> > > > > >
> > > > > > -->
> > > > > > > Axis channel 0 OutputChan0=8
> > > > > > >
> > > > > > > Axis channel 1 OutputChan0=9
> > > > > > >
> > > > > > > Axis channel 2 OutputChan0=10
> > > > > > >
> > > > > > > Axis channel 3 OutputChan0=11
> > > > > >
> > > > > >
> > > > > > Why would the output chan for axis 1 be 9? I am using the I/O number
> > > > > > for the 'step' pin of each axis, which is 8,10,12,14 respectively. You
> > > > > > are using sequential numbers for each channel.
> > > > > >
> > > > > > What exactly is the channel number? It was my impression that this was
> > > > > > the I/O number, but obviously that is not the case according to your
> > > > > > instruction. I did notice that for example I/O 14 is on the RJ45, yet
> > > > > > it is assocuated with a pin that is on JP7 (if I remeber correctly).
> > > > > >
> > > > > > IN a nutshell, Iam getting the signals I need, they are just on the
> > > > > > wrong pins and followng the docs exactly does not correct the issue. If
> > > > > > I just set I/O 8 as an output and click it on and off, I get a signal
> > > > > > on pin 15 exactly as it should be. However, if I select I/O 8 as the
> > > > > > output channel for an axis, the signal ends up on pin 17 and I end up
> > > > > > without enough pins. This machine will have 6 axis. (including the
> > > > > > spindle) running of the Kflop and 2 more running directly off my ATC
> > > > > > controller. I need all of the putputs. That's why I have the K-flop.
> > > > > >
> > > > > > I'll give your Putput channel numbering a try, buy can you explain the
> > > > > > difference bwteen the 'ouput channel number' and the 'I/O number'?
> > > > > >
> > > > > > - Steve
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > > In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Steve,
> > > > > > >
> > > > > > > Sorry it is so confusing there is a lot of flexibility and options.
> > > > > > >
> > > > > > > Actually any axis channel can be mapped to any GCode axis using the
> > > > > > DefineCoordSystem() function. So there is no set order. But
> > > > > > the most straightforward is to map as you describe:
> > > > > > >
> > > > > > > Axis 0=X 1=Y 2=Z and 3=A
> > > > > > >
> > > > > > > by the function call:
> > > > > > >
> > > > > > > DefineCoordSystem(0,1,2,3);
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > But then furthermore any axis channel can control one or more output
> > > > > > devices. In your case the axis only needs to control one device, a
> > > > > > Step/Dir Generator. There are 8 Step/Dir Generators that are
> > > > > > basically hard wired to specific IO pins (2 pins each - one pin for Step
> > > > > > and one pin for Direction). The OutputChan0 setting determines
> > > > > > which of the Step/Dir Generators will be used. The OutputChan1
> > > > > > setting is not used at all.
> > > > > > >
> > > > > > >
> > > > > > > Again the simple and logical thing is to have:
> > > > > > >
> > > > > > > axis channel #0 use Step/Dir Generator #0
> > > > > > > axis channel #1 use Step/Dir Generator #1
> > > > > > > axis channel #2 use Step/Dir Generator #2
> > > > > > > axis channel #3 use Step/Dir Generator #3
> > > > > > >
> > > > > > >
> > > > > > > However there is one more thing to consider. The outputs of the
> > > > > > Step/Dir generators can drive in open collector mode or TTL output
> > > > > > mode. Open collector mode only sinks current to ground. This
> > > > > > mode works with the most common type of drives that need to sink 5V
> > > > > > signals to ground. Note that in open collector mode if you use a
> > > > > > scope or voltmeter to look at the outputs you wont see anything because
> > > > > > the output only sinks current (shorts to ground). Some drives work
> > > > > > require the inputs to be actively driven high and low. In this case
> > > > > > select TTL mode. To select TTL mode add 8 to the OutputChan0
> > > > > > number.
> > > > > > >
> > > > > > >
> > > > > > > This is all spelled out with tables on how to configure here:
> > > > > > >
> > > > > > > http://www.dynomotion.com/Help/StepAndDirection/StepAndDir.htm
> > > > > > >
> > > > > > > This KFLOP functional diagram might help understand and visualize the
> > > > > > software and hardware components.
> > > > > > >
> > > > > > >
> > > > > > http://www.dynomotion.com/Help/SchematicsKFLOP/KFLOPFunctionalDiagram.ht\
> > > > > > m
> > > > > > >
> > > > > > >
> > > > > > > You haven't told us what type of drives you have. But assuming
> > > > > > you require TTL signals and want to use the first 4 Step/Dir
> > > > > > Generators. Configure:
> > > > > > >
> > > > > > > Axis channel 0 OutputChan0=8
> > > > > > >
> > > > > > > Axis channel 1 OutputChan0=9
> > > > > > >
> > > > > > > Axis channel 2 OutputChan0=10
> > > > > > >
> > > > > > > Axis channel 3 OutputChan0=11
> > > > > > >
> > > > > > > HTH
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: Steve steve@
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Saturday, March 9, 2013 3:28 PM
> > > > > > > Subject: [DynoMotion] ANother newbee question. Kflop seems to be
> > > > > > routing axis to wrong pins
> > > > > > >
> > > > > > >
> > > > > > > Â
> > > > > > > Mach3 v.062Â patched Kflop plug-in from last week (fixed 'no stop
> > > > > > ' problem).
> > > > > > > Can't figure out what is wrong. Double checked everything I can think
> > > > > > of but still no joy. The Kflop seems to be routing the axis to the wrong
> > > > > > pins. Hours invested in this problem, cannot figure it out.
> > > > > > > First, I assumed Axis 0=X 1=Y 2=Z and 3=A
> > > > > > > When configuring the axis I set no input, step dir output and for the
> > > > > > output channel I set 8 for X (axis 0) 10Â for Y (axis 1) 12 for Z
> > > > > > (axis 2)Â and 14 for A (axis 3)
> > > > > > > These I/O are supposed to rout to pins 15,17,19,21 on JP7, but what I
> > > > > > get is this:
> > > > > > > X  (axis 0) is on pin 17
> > > > > > > Y (axis 1) is on pin 19
> > > > > > > Z and A are on the RJ45 connector.
> > > > > > > What am I doing wrong?
> > > > > > > Thanks,
> > > > > > > Steve
> > > > > > > Â
> > > > > > > Â
> > > > > > > Â
> > > > > > > Â
> > > > > > > Â
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Group: DynoMotion Message: 6955 From: Tom Kerekes Date: 3/11/2013
Subject: Re: ANother newbee question. Kflop seems to be routing axis to wrong
Hi Steve,

We don't have a Programmers Reference.

The KMotionDef.h file lists all the available functions and data structures.

In many cases there are 1:1 similarity between C Functions and variables to Script commands and settings listed here:

http://www.dynomotion.com/Help/CmdsCategory.htm

HTH
Regards
TK